package com.itheima.train;

import com.itheima.train.common.config.DruidDataSourceConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@ServletComponentScan
@Import(DruidDataSourceConfig.class)
@MapperScan({"com.itheima.train.*.mapper","com.itheima.train.mapper"})//mybatis扫描支持
public class TrainCardApplication {
    public static void main(String[] args) {
        SpringApplication.run(TrainCardApplication.class, args);
    }
}
